﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections;
using WLWeb.PulbicClass;

namespace WLWeb.Common
{
    public partial class CreateTaoCan : System.Web.UI.Page
    {
        string ArticleId = "";
        BLL.wlBLL.Acticle bllact = new BLL.wlBLL.Acticle();
        protected void Page_Load(object sender, EventArgs e)
        {
            ShowData();
        }
        protected void ShowData()
        {
            if (Request.QueryString["ArticleInfomationID"]!=null && !string.IsNullOrEmpty(Request.QueryString["ArticleInfomationID"].ToString()))
            {
                ArticleId = Request.QueryString["ArticleInfomationID"].ToString();
            }
            if (ArticleId != "")
            {
                DataTable dtcontent = bllact.GetbllTaoCanInfoContent(ArticleId);
                if (dtcontent != null && dtcontent.Rows.Count > 0)
                {
                    lblContent.Text = dtcontent.Rows[0]["ArticleContent"].ToString();
                    lblmap.Text = "您当前的位置：<a href=\"../Common/Index\">网站首页</a> &gt;&gt;" + dtcontent.Rows[0]["OtherCategoryName"].ToString();
                    lblMenu.Text = dtcontent.Rows[0]["OtherCategoryName"].ToString();
                }
            }
            else
            {
                DataTable dtcontent = bllact.GetActicleInfo(new Hashtable(){{"OtherCategoryGroup",Webpublic.GetGroupName(1)}});
                if (dtcontent != null && dtcontent.Rows.Count > 0)
                {
                    lblContent.Text = dtcontent.Rows[0]["ArticleContent"].ToString();
                    lblmap.Text = "您当前的位置：<a href=\"../Common/Index\">网站首页</a> &gt;&gt;" + dtcontent.Rows[0]["OtherCategoryName"].ToString();
                    lblMenu.Text = dtcontent.Rows[0]["OtherCategoryName"].ToString();
                }
            }
        }
    }
}